package com.qys.livesMall.shop.controller.app;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qys.livesMall.common.result.R;
import com.qys.livesMall.shop.modal.dto.QueryShopDataDetailDTO;
import com.qys.livesMall.shop.modal.vo.ShopDataDetailVO;
import com.qys.livesMall.shop.service.ShopDataDetailService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 店铺流量明细表
 * (ShopDataDetail)表控制层
 *
 * @author makejava
 * @since 2023-08-26 11:29:31
 */
@RestController
@RequestMapping("/app/shopDataDetail")
@Tag(name = "App-流量明细", description = "App-流量明细")
public class AppDataDetailController {
    /**
     * 服务对象
     */
    @Resource
    private ShopDataDetailService shopDataDetailService;

    /**
     * 分页查询所有数据
     *
     * @return 所有数据
     */
    @PostMapping("/getAll")
    @Operation(summary = "根据店铺ID查询流量明细")
    public R<IPage<ShopDataDetailVO>> selectAll(@RequestBody @Validated QueryShopDataDetailDTO dto) {
        return R.ok(shopDataDetailService.selectAll(dto));
    }


}

